
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>

<%
	   String tbpath = request.getContextPath();
%>




<script>

$("document").ready(function()
{
	//按键查询
	$("#searchkey").keydown(function(e){ 
			 var curkey = e.which; 
			 if(curkey == 13){
				$("#sea_btn_top").click();
       		 }
	});
	
	$("#sea1").click();
	
});


function setTab(name,cursel,n){
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		menu.className=i==cursel?"hover":""; //如果i等于cursel，则：menu.className="hover"；如果不相等，则:menu.className=""
		con.style.display=i==cursel?"block":"none";
	}
}



function doChoose(type){
    if(type=="1"){
    	$("#sea1").attr("class","hover");
    	$("#sea2").attr("class","");
    	$("#sea3").attr("class","");
    	
    	$("#keywords_1").show();
    	$("#keywords_2").hide();
    	$("#keywords_3").hide();
    }else if(type=="2"){
    	$("#sea2").attr("class","hover");
    	$("#sea1").attr("class",";");
    	$("#sea3").attr("class",";");
    	
    	$("#keywords_2").show();
    	$("#keywords_1").hide();
    	$("#keywords_3").hide();
    }else if(type=="3"){
    	$("#sea3").attr("class","hover");
    	$("#sea1").attr("class",";");
    	$("#sea2").attr("class",";");
    	
    	$("#keywords_3").show();
    	$("#keywords_1").hide();
    	$("#keywords_2").hide();
    }
    $("#searchtype").val(type);
}

function goSearch(){
    if($("#searchtype").val()==""){
    	alert("请选择搜索类型,谢谢!");
    	return;
    }
    
    if($("#searchkey").val()==""){
    	alert("请输入关键字,谢谢!");
    	return;
    }
	$("#indexSeaForm").submit();
}


function clickHotKey(keyword,seatype){
	$("#searchtype").val(seatype);
	$("#searchkey").val(keyword);
	$("#indexSeaForm").submit();
}
</script>





<!--banner部分-->
<form id="indexSeaForm" action="<%=tbpath%>/common1/indexSearch.jsp" name="indexSeaForm"  method="post">

<input id="searchtype" name="searchtype" style="display:none;width:0px;"  type="text"  />


<table style="width:1000px;height:117px;margin:0 auto;">
	<tr>
		<td style="width:300px;height:99px;float:left;text-align:left;">
			<a style="border:0px;" href="/cms">
				<img  style="border:0px;" src="<%=tbpath%>/common1/images/logo.jpg" />
			</a>
		</td>
		<td style="vertical-align:top;">
			<table>
				<tr><td style="">
					<div style="width:645px;height:55px;margin-top:32px;margin-right:5px;">
					    <div id="Tab4">
							<div class="Menubox4" style="width:195px;">
								<ul>
									<li id="sea1" onclick="javascript:doChoose('1');">找成果</li>
									<li id="sea2" onclick="javascript:doChoose('2');" >找专家</li>
									<li id="sea3" onclick="javascript:doChoose('3');" >找机构</li>
								</ul>
							</div>
							<div class="Contentbox4">
								<div style="float:left;">
									<input name="searchkey" id="searchkey" type="text" class="searchtext" />
								</div>
								<img id="sea_btn_top" onclick="goSearch();" style="float:left;width:88px;height:28px;bottom:2px;border:0px;cursor:pointer;" src="<%=tbpath%>/common/images/touming.gif" />
							</div>
						</div>
					</div>
				</td></tr>
				<tr><td style="vertical-align:top;">
					<div id="keywords_1" style="width:645px;height:18px;text-align:left;color:#0054a6;overflow:hidden;">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<strong>关键字：</strong>
						<a href="javascript:clickHotKey('安全管理','1');" class="blue">安全管理</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('矿山安全','1');" class="blue">矿山安全</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('矿井通风','1');" class="blue">矿井通风</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('安全工程','1');" class="blue">安全工程</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('劳动卫生','1');" class="blue">劳动卫生</a>
					</div>
					
					<div id="keywords_2" style="display:none;width:645px;height:18px;text-align:left;color:#0054a6;overflow:hidden;">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<strong>关键字：</strong>
						<a href="javascript:clickHotKey('郭忠平','2');" class="blue">郭忠平</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('陈党义','2');" class="blue">陈党义</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('程久龙','2');" class="blue">程久龙</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('周世宁','2');" class="blue">周世宁</a>
					</div>
					
					<div id="keywords_3" style="display:none;width:645px;height:18px;text-align:left;color:#0054a6;overflow:hidden;">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<strong>关键字：</strong>
						<a href="javascript:clickHotKey('北京大学','3');" class="blue">北京大学</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('清华大学','3');" class="blue">清华大学</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('北京工业大学','3');" class="blue">北京工业大学</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('西北工业大学','3');" class="blue">西北工业大学</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('重庆大学','3');" class="blue">重庆大学</a>&nbsp;|&nbsp;
						<a href="javascript:clickHotKey('电子科技大学','3');" class="blue">电子科技大学</a>
					</div>
					
				</td></tr>
			</table>
		</td>
	</tr>
</table>



<div id="clearboth"></div>
</form>
<!--banner结束-->


